package com.loong.game2048.module.vo;

import com.loong.game2048.module.Tile;
import lombok.Data;

/**
 * @author lyx
 * @date 2020/5/3 19:32
 */
@Data
public class GameDataVo {

    //分数
    private Integer score;

    //历史最高
    private Integer higest;

    private boolean hasMoved;

    //游戏状态
    private Integer gameState;

    //二维数组
    private Tile[][] tiles;


//    public void setTiles(Tile[][] tiles) {
//        Integer[][] res = new Integer[4][4];
//        for (int i = 0;i<tiles.length;i++){
//            for (int j = 0; j<tiles[i].length ;j++){
//                if (tiles[i][j]!=null){
//                    res[i][j] = tiles[i][j].getValue();
//                }
//                continue;
//            }
//        }
//        this.tiles = res;
//    }

}
